/*
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-10-17 18:28:12
 * @LastEditTime: 2025-08-11 23:52:57
 * @LastEditors: sueRimn
 */

import {
  BASEHOST,
} from '../../config'
import Request from '../http'


// 单个广告banner
export const fetchOneBanner = positionId => Request.get(`${BASEHOST}/api/advertise/one`, { positionId })

// 获取用户卡券列表
export const fetchUserBonusList = data => Request.get(`${BASEHOST}/api/coupon/list`, data)

// 获取用户可用卡券列表
export const fetchUserCanUseList = data => Request.get(`${BASEHOST}/api/userBonus/canUseBonusList`, data)


// 用户领取红包
export const fetchUserReceiveBonus = data => Request.post(`${BASEHOST}/api/receiveBonus/userReceiveBonus`, data)